/*
 * Copyright (c) 2020, 2025, keyila All rights reserved.
 *
 */
package com.clp.bean;

import lombok.Setter;

/**
 * @author clp
 * @version 1.0
 */
@Setter
public class PageRequest {
    private Long pageNo=1L;

    private Long pageSize=10L;

    public Long getPageNo(){
        if (pageNo==null||pageNo<1){
            return 1L;
        }
        return pageNo;
    }

    public Long getPageSize(){
        if (pageSize==null||pageSize<1|| pageSize>Integer.MAX_VALUE){
            return 10L;
        }
        return pageSize;
    }
}
